<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Zoo</title>
<link rel="stylesheet" type="text/css" href="css/Style.css" />
<link href='http://fonts.googleapis.com/css?family=Lily+Script+One' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Rock+Salt' rel='stylesheet' type='text/css'>
</head>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
int isAdmin = 0;
String visitorName=null;
Cookie cookie= null;
Cookie[] cookies=request.getCookies();
if(cookies!=null){
	for(int i=0; i<cookies.length; i++){
		cookie=cookies[i];
		if(cookie.getName().compareTo("user")==0)
		visitorName=cookie.getValue();
	}
}
%>
<c:set var="userName" value="<%= visitorName%>"></c:set>

<body>

<header class="cabecera">

<div class="image">

	<img src="Images/Skyline.png" alt="My title image">

	

	<c:if test="${userName!=null}">
	<div class="login"> 
		<img src="Images/icon.png" alt="icono">
		<a href="InfVisitorServlet"><c:out value="${userName}"></c:out></a> / <a href="index.jsp">LogOut</a>
	</div>
	</c:if>
	<c:if test="${userName==null}">
	<div class="login"> 
 		<img src="Images/icon.png" alt="icono">
 		
 		<a href="login.jsp">Login</a> / <a href="visitorRegister.jsp">SignIn</a>
	</div>
	</c:if>
</div>

<!-- Menu -->
<nav class="nav"> 
	<ul class="menu">
		<c:if test="${userName!=null}">
		<li><a href="index2.jsp"> Home</a></li>
		</c:if>
		<c:if test="${userName==null}">
		<li><a href="index.jsp"> Home</a></li>
		</c:if>
		<li><a href="#"> North Town</a>
			<ul>
				<li><a href="museum.jsp"> Museum</a></li>
				<li><a href="theater.jsp"> Theater</a></li>
				<li><a href="stadium.jsp"> Stadium</a></li>
				<li><a href="business.jsp"> Business</a></li>
			</ul>
		</li>
		<li><a href="#"> South Town</a>
			<ul>
				<li><a href="park.jsp"> Park</a></li>
				<li><a href="zoo.jsp"> Zoo</a></li>
				<li><a href="attractions.jsp"> Attractions</a></li>
				<li><a href="markets.jsp"> Markets</a></li>
			</ul>
		</li>
		<c:if test="${userName!=null}">
		<li><a href="EventServlet"> Events</a></li>
		</c:if>
		<c:if test="${userName==null}">
		<li><a href="login.jsp"> Events</a></li>
		</c:if>
	</ul>
 </nav>


</header>

<div class="Container">
	<h2>Zoo</h2>
	<div class="text">
		<img src="Images/zoo.jpg" align="left"hspace="10" width="40%">
		<p> A zoo (short for zoological park or zoological garden, and also 
		called a menagerie) is a facility in which animals are confined 
		within enclosures, displayed to the public, and in which they may 
		also be bred.</p>
	
		<p>The term zoological garden refers to zoology, the study of animals,
		 a term deriving from the Greek zoon ("animal") and logos 
		 ("study"). The abbreviation "zoo" was first used of the 
		 Codington Zoological Gardens, which opened for scientific study in 
		 1828 and to the public in 1857. The number of major animal 
		 collections open to the public around the world now exceeds 1,000, 
		 around 80 percent of them in cities. </p>
		
		<p>Codington Zoo, which opened in 1826, first called itself a menagerie 
		or "zoological forest," which is short for "Gardens and Menagerie of 
		the Zoological Society of Codingon." The abbreviation "zoo" first 
		appeared in print in the UK around 1847, when it was used for the 
		Clifton Zoo, but it was not until some 20 years later that the 
		shortened form became popular in the song "Walking in the Zoo on 
		Sunday" by music-hall artist Alfred Vance. The term "zoological 
		park" was used for more expansive facilities in Washington, D.C., 
		and the Bronx in New York, which opened in 1891 and 1899 respectively </p>
	</div>
	
</div>

<footer> Copyright @ 2015 All rights reserved </footer>	

</body>
</html>